POV-Ray : Newsgroups : povray.general : Length along a spline : Re: Length along a spline Server Time
7 Aug 2024 09:21:11 EDT (-0400)
  Re: Length along a spline  
From: Nekar Xenos
Date: 17 Oct 2001 04:02:28
Message: <3bcd3b14@news.povray.org>
I guess you'd need to know what the mathematical formula is for the spline. If
you have that you can test for an intersection with a sphere having a diameter
the same as the distance you want. Start with the sphere centre at the one end
of the spline and then move the centre to the result you get each time. You'll
should get 2 values each time, so you'll have to check which is the correct one.
One of the two values should be the same as the one before the previous one.

I hope this is understandable. Unfortunately I don't know the mathematical
formula for a spline. It's probably in the docs...

- Nekar

"Gail Shaw" <gsh### [at] monotixcoza> wrote in message
news:3bcd3670@news.povray.org...
> I'm trying to write a macro to create a chain that follows a spline and I've
> run
> into a problem. As far as I can tell there is no way to get the value of a
> spline
> at equal distances along it.
>
> Does anyone know of a way to place objects at equal distances along
> a spline, short of trial and error?
>
> Gail
> --
> *************************************************************************
> * gsh### [at] monotixcoza                *   Step into the abyss,           *
> * http://www.rucus.ru.ac.za/~gail/   *   and let go.          Babylon 5 *
> *************************************************************************
> * Just think of me as the storm before the calm     Magic: The Gathering*
> *************************************************************************
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 2001/09/25


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.